package com.example.designpattenexample.strategy.example;

public class ShoppingCard {

    private int num;
    private double unitPrice;
    private double discountAmount;

    public ShoppingCard(int num,double unitPrice){
        this.num = num;
        this.unitPrice = unitPrice;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public double getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(double unitPrice) {
        this.unitPrice = unitPrice;
    }

    public double getDiscountAmount() {
        return discountAmount;
    }

    public void setDiscountAmount(double discountAmount) {
        this.discountAmount = discountAmount;
    }
}
